﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopPostageMode : BaseObject
    {
        //begin
        public TopPostageMode(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _PostageId;
        [Size(SizeAttribute.Unlimited)]
        public string PostageId
        {
            get
            {
                return _PostageId;
            }
            set
            {
                SetPropertyValue("PostageId", ref _PostageId, value);
            }
        }
        private string _Id;
        [Size(SizeAttribute.Unlimited)]
        public string Id
        {
            get
            {
                return _Id;
            }
            set
            {
                SetPropertyValue("Id", ref _Id, value);
            }
        }
        private string _Type;
        [Size(SizeAttribute.Unlimited)]
        public string Type
        {
            get
            {
                return _Type;
            }
            set
            {
                SetPropertyValue("Type", ref _Type, value);
            }
        }
        private string _Dests;
        [Size(SizeAttribute.Unlimited)]
        public string Dests
        {
            get
            {
                return _Dests;
            }
            set
            {
                SetPropertyValue("Dests", ref _Dests, value);
            }
        }
        private string _Price;
        [Size(SizeAttribute.Unlimited)]
        public string Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private string _Increase;
        [Size(SizeAttribute.Unlimited)]
        public string Increase
        {
            get
            {
                return _Increase;
            }
            set
            {
                SetPropertyValue("Increase", ref _Increase, value);
            }
        }
        private TopPostage _Postage;
        [Association("PostagePostageModes", typeof(TopPostage))]
        public TopPostage Postage
        {
            get
            {
                return _Postage;
            }
            set
            {
                SetPropertyValue("Postage", ref _Postage, value);
            }
        }
        //end

    }
}
